<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/usertop.jsp" %>
<%@ taglib uri="/struts-bean" prefix="bean" %>
<%@ taglib uri="/struts-html" prefix="html" %>
<%@ taglib uri="/struts-logic" prefix="logic" %>
<html>
<head>
<title>修改密码</title>
<link href="/css/login.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
//密码核对
	function domethod(){
	if(document.all.oldPass.value == "" || document.all.oldPass.value.length <1 
	|| document.all.newPass.value == "" || document.all.newPass.value.length <1){
	  alert("不能为空");
	  return false;
	}else{
				if (document.all.newPass.value != document.all.rePass.value){
					alert('对不起，两次输入的密码不一致，请重新输入！');
					document.all.newPass.value = "";
					document.all.rePass.value ="";
					document.all.newPass.focus();
					return false;
			}else{
			document.forms[0].submit();
			}
	}
}
</script>
<body>
<html:form action="/com/user/manage/editpass" method="post">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="1" class="line1">
<tr>
<td align="center" colspan="2" class="titlebg">
设置密码
</td>
</tr>
  <tr>
  <td class="mtdtitle1">
  原密码
  </td>
  <td class="mtdtextleft">
  <html:password property="oldPass" styleClass="input1"></html:password>
  </td>
  </tr>
  <tr>
  <td class="mtdtitle1">
  新密码
  </td>
  <td class="mtdtextleft">
  <html:password property="newPass" styleClass="input1"></html:password>
  </td>
  </tr>
  <tr>
  <td class="mtdtitle1">
  确认密码
  </td>
  <td class="mtdtextleft">
  <input type="password" id="rePass" class="input1"/>
  </td>
  </tr>
  <tr>
  <td colspan="2" align="center" class="mtdtitle1">
  <input type="button" class="tbutton" onclick="domethod()" value="提交"/>
  </td>
  </tr>
</table>
</html:form>
</body>
</html>
